//
//  oAuth.h
//  TwiX
//
//  Created by Christoph Seitz on 27.07.09.
//  Copyright 2009 DS Shanghai. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface oAuthServicePorvider : NSObject  {
	NSURL* requestToken;
	NSURL* authorize;
	NSURL* accessToken;
	
}
+(oAuthServicePorvider*) oAuthServiceProviderWithRequestToken:(NSURL*)rt Authorize:(NSURL*)a andAccessToken:(NSURL*)at;
-(id) init;
-(void) setRequestToken:(NSURL*) url;
-(void) setAuthorize:(NSURL*) url;
-(void) setAccessToken:(NSURL*) url;
-(NSURL*) requestToken;
-(NSURL*) authorize;
-(NSURL*) accessToken;

@end

@interface oAuthConsumer : NSObject {
	
}
+(oAuthConsumer*) oAuthConsumerWithKey:(NSString*)k andSecret:(NSString*)s;
@end

@interface oAuth : NSObject {
	NSString* pass;
	NSString* user;
	oAuthConsumer* cosumer;
	oAuthServicePorvider* provider;

}
-(id)initWithServiceProvider:(oAuthServicePorvider*)sp withCosumer:(oAuthConsumer*)c;
-(void) setUser;
-(NSString*) user;
-(NSString*) password;
-(void) setPassword;
-(void) setServiceProvider:(oAuthServicePorvider*)sp;
-(void) setConsumer:(oAuthConsumer*)c;
-(void)connect;
@end


